{% load gaev_extras %}

<div class="details_section_title">
{% if refent_referring_property %}
Entities reffering from model {{section.referer}} through property {{section.referring_property}}:
{% else %}
Entities reffering from model {{section.referer}}:
{% endif %}
</div>

<div>
{% for desc in section.entities_but_last %}
{{desc}},
{% endfor %}
{% if section.last_entity %}
{{section.last_entity}}
{% if section.remaining %}
 and {{section.remaining}} more.
{% endif %}
<a href="{{section.all_url}}">(all)</a>
{% else %}
None
{% endif %}
</div>
